import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getSupplier = {
  getSupplierComplaint(params) {
    return axios.post(
      `${base.bd}/admin/supplier_complaint/lists`,
      qs.stringify(params)
    );
  },
  setSupplierComplaint(params) {
    return axios.post(
      `${base.bd}/admin/supplier_complaint/saveedit`,
      qs.stringify(params)
    );
  },
  delSupplierComplaint(params) {
    return axios.post(
      `${base.bd}/admin/supplier_complaint/del_all`,
      qs.stringify(params)
    );
  },
  getSupplierPromotion(params) {
    return axios.post(
      `${base.bd}/admin/supplier_promotion/lists`,
      qs.stringify(params)
    );
  },
  setSupplierPromotion(params) {
    return axios.post(
      `${base.bd}/admin/supplier_promotion/saveedit`,
      qs.stringify(params)
    );
  },
  delSupplierPromotion(params) {
    return axios.post(
      `${base.bd}/admin/supplier_promotion/del`,
      qs.stringify(params)
    );
  },
  approvedSupplierPromotion(params) {
    return axios.post(
      `${base.bd}/admin/supplier_promotion/approved`,
      qs.stringify(params)
    );
  },
  checkSupplier(params) {
    return axios.post(`${base.bd}/admin/supplier/check`, qs.stringify(params));
  },
  getCheckSupplier(params) {
    return axios.post(
      `${base.bd}/admin/supplier/savecheck`,
      qs.stringify(params)
    );
  },
  getSupplierEwm(params) {
    return axios.post(
      `${base.bd}/admin/user/supplier_ewm`,
      qs.stringify(params)
    );
  },
  get_mail_company(params) {
    return axios.post(
      `${base.bd}/admin/order/mail_company`,
      qs.stringify(params)
    );
  },
  reback_suppliershop(params) {
    return axios.post(
      `${base.bd}/admin/supplier/reback_product`,
      qs.stringify(params)
    );
  },
  getSupplierSlide(params) {
    return axios.post(
      `${base.bd}/admin/supplier_slide/lists`,
      qs.stringify(params)
    );
  },
  addSupplierSlide(params) {
    return axios.post(
      `${base.bd}/admin/supplier_slide/saveadd`,
      qs.stringify(params)
    );
  },
  editSupplierSlide(params) {
    return axios.post(
      `${base.bd}/admin/supplier_slide/saveedit`,
      qs.stringify(params)
    );
  },
  delSupplierSlide(params) {
    return axios.post(
      `${base.bd}/admin/supplier_slide/del`,
      qs.stringify(params)
    );
  },
  changeSippluerSort(params) {
    return axios.post(
      `${base.bd}/admin/supplier_page/supplier_sort`,
      qs.stringify(params)
    );
  },

  pass_supplier_activity(params) {
    return axios.post(
      `${base.bd}/admin/supplier_activity/saveedit`,
      qs.stringify(params)
    );
  },
  approved_supplier_activity(params) {
    return axios.post(
      `${base.bd}/admin/supplier_activity/approved`,
      qs.stringify(params)
    );
  },
  cancel_supplier_activity(params) {
    return axios.post(
      `${base.bd}/admin/supplier_activity/del`,
      qs.stringify(params)
    );
  },
  doudian_mail_company(params) {
    return axios.post(
      `${base.bd}/admin/doudian/doudian_mail_company`,
      qs.stringify(params)
    );
  },
  doudian_edit_send(params) {
    return axios.post(
      `${base.bd}/admin/doudian/edit_send`,
      qs.stringify(params)
    );
  },
  doudian_mail(params) {
    return axios.post(
      `${base.bd}/admin/doudian/mail`,
      qs.stringify(params)
    );
  },
  doudian_reback_goods(params) {
    return axios.post(
      `${base.bd}/admin/doudian/reback_goods`,
      qs.stringify(params)
    );
  },
  doudian_address_list(params) {
    return axios.post(
      `${base.bd}/admin/doudian/address_list`,
      qs.stringify(params)
    );
  },
};
export default getSupplier;
